import request from '@/utils/request'
const apiPrefix = '/ap/config'
export class ConfigManageApi {
  
    //导入配置
    static reqImportConfig(data:any) {
        return request.post(`${apiPrefix}/import`,data)
    }
    //ap配置导出
    static reqExportApConfig(data:any) {
        return request.post(`${apiPrefix}/ap_export`,data)
    }

    //cp配置导出
    static reqExportCpConfig(data:any) {
        return request.post(`${apiPrefix}/cp_export`,data)
    }

    // 保存配置
    static reqSaveConfig(data:any,onUploadProgress: (progressEvent: any) => void, cancelToken:any) {
        return request.post(`${apiPrefix}/save`,data,{
            onUploadProgress: onUploadProgress,
            cancelToken: cancelToken
        })
    }

    static reqExportConfig(data:any) {
        return request.post(`${apiPrefix}/export`,data)
    }

    
}

